package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
//没有这个就无法找到
@RestController
public class HelloController {
    //类似路径名称
    @RequestMapping(value = "/hello66",method = RequestMethod.GET)
    public String hello(){
        int a = 5 / 2;
        return "hello Spring";
    }
}
